package com.gimi.cloud.bbp.dao.dao.User;

import com.gimi.cloud.bbp.dao.myMapper.MyMapper;
import com.gimi.cloud.bbp.entity.userInfo.RdWorkInfoEntity;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * 
 * @author chendi
 * @date 2018年1月8日
 */
public interface WorkInfoDao extends MyMapper<RdWorkInfoEntity> {
	
	@Select("SELECT * FROM rd_work_info WHERE user_id = #{userId}")
	RdWorkInfoEntity selectByUserId(@Param(value = "userId") String userId);
	
	@Update("update rd_work_info set is_delete = 1 where info_id = #{infoId}")
	int deleteByInfoId(@Param(value = "infoId") Integer infoId);

	 

    
}
